\hypertarget{rotary__encoder_8h}{
\section{front\_\-panel/rotary\_\-encoder.h File Reference}
\label{rotary__encoder_8h}\index{front\_\-panel/rotary\_\-encoder.h@{front\_\-panel/rotary\_\-encoder.h}}
}
Rotary encoder functions.  


\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{rotary__encoder_8h_d60cbce0f59801111441698f587798e2}{rotary\_\-encoder\_\-poll} (void)
\begin{CompactList}\small\item\em Poll the rotary encoder. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Rotary encoder functions. 

\begin{Desc}
\item[Author:]Mikael Larsmark, SM2WMV \end{Desc}
\begin{Desc}
\item[Date:]2010-01-25 

\begin{Code}\begin{verbatim} #include "front_panel/rotary_encoder.h" 
\end{verbatim}
\end{Code}

 \end{Desc}


Definition in file \hyperlink{rotary__encoder_8h-source}{rotary\_\-encoder.h}.

\subsection{Function Documentation}
\hypertarget{rotary__encoder_8h_d60cbce0f59801111441698f587798e2}{
\index{rotary\_\-encoder.h@{rotary\_\-encoder.h}!rotary\_\-encoder\_\-poll@{rotary\_\-encoder\_\-poll}}
\index{rotary\_\-encoder\_\-poll@{rotary\_\-encoder\_\-poll}!rotary_encoder.h@{rotary\_\-encoder.h}}
\subsubsection[{rotary\_\-encoder\_\-poll}]{\setlength{\rightskip}{0pt plus 5cm}int rotary\_\-encoder\_\-poll (void)}}
\label{rotary__encoder_8h_d60cbce0f59801111441698f587798e2}


Poll the rotary encoder. 

\begin{Desc}
\item[Returns:]Returns 0 if nothing happened, -1 if rotary CCW and 1 if CW \end{Desc}


Definition at line 44 of file rotary\_\-encoder.c.

References encoder\_\-current\_\-state, encoder\_\-last\_\-state, and poll\_\-encoder\_\-state().

Referenced by main().